package com.ruoyi.kucun.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.kucun.mapper.InventoryCheckLogMapper;
import com.ruoyi.kucun.domain.InventoryCheckLog;
import com.ruoyi.kucun.service.IInventoryCheckLogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 库存盘点历史记录Service业务层处理
 * 
 * @author Rosou
 * @date 2025-06-17
 */
@Service
public class InventoryCheckLogServiceImpl implements IInventoryCheckLogService 
{
    @Autowired
    private InventoryCheckLogMapper inventoryCheckLogMapper;

    /**
     * 查询库存盘点历史记录
     * 
     * @param checkId 库存盘点历史记录主键
     * @return 库存盘点历史记录
     */
    @Override
    public InventoryCheckLog selectInventoryCheckLogByCheckId(Long checkId)
    {
        return inventoryCheckLogMapper.selectInventoryCheckLogByCheckId(checkId);
    }

    /**
     * 查询库存盘点历史记录列表
     * 
     * @param inventoryCheckLog 库存盘点历史记录
     * @return 库存盘点历史记录
     */
    @Override
    public List<InventoryCheckLog> selectInventoryCheckLogList(InventoryCheckLog inventoryCheckLog)
    {
        return inventoryCheckLogMapper.selectInventoryCheckLogList(inventoryCheckLog);
    }

    /**
     * 新增库存盘点历史记录
     * 
     * @param inventoryCheckLog 库存盘点历史记录
     * @return 结果
     */
    @Override
    public int insertInventoryCheckLog(InventoryCheckLog inventoryCheckLog)
    {
        return inventoryCheckLogMapper.insertInventoryCheckLog(inventoryCheckLog);
    }

    /**
     * 修改库存盘点历史记录
     * 
     * @param inventoryCheckLog 库存盘点历史记录
     * @return 结果
     */
    @Override
    public int updateInventoryCheckLog(InventoryCheckLog inventoryCheckLog)
    {
        return inventoryCheckLogMapper.updateInventoryCheckLog(inventoryCheckLog);
    }

    /**
     * 批量删除库存盘点历史记录
     * 
     * @param checkIds 需要删除的库存盘点历史记录主键
     * @return 结果
     */
    @Override
    public int deleteInventoryCheckLogByCheckIds(String checkIds)
    {
        return inventoryCheckLogMapper.deleteInventoryCheckLogByCheckIds(Convert.toStrArray(checkIds));
    }

    /**
     * 删除库存盘点历史记录信息
     * 
     * @param checkId 库存盘点历史记录主键
     * @return 结果
     */
    @Override
    public int deleteInventoryCheckLogByCheckId(Long checkId)
    {
        return inventoryCheckLogMapper.deleteInventoryCheckLogByCheckId(checkId);
    }
}
